package cn.micai.base.string;

/**
 * 描述：How to convert String to Char Array in java
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/6/11 15:35
 */
public class StringToCharArrayMain {

    public static void main(String [] args) {
        String str = "java2blog";
        char[] chars = str.toCharArray();
        for (int i=0; i<chars.length; i++) {
            System.out.println(chars[i]);
        }
    }
}
